<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<script type="text/javascript">
</script>
<div>
	<form id="f_board_detail" action="boardSave.do" method="post">
		<input type="hidden" name="board.boardId" value="${board.boardId }">
		<table id="t_board_detail">
			<tr>
				<th width="75px">中文名称</th>
				<td><input type="text" name="board.chineseName" value="${board.chineseName }"/></td>
			</tr>
			<tr>
			<th width="75px">英文名称</th>
				<td><input type="text" name="board.englishName" value="${board.englishName }"/></td>
			</tr>
			<tr>
			<th width="75px">帖子审核</th>
				<td>
					<input type="checkbox" id="f_board_audit" name="board.audit" value="1"/>
					<script type="text/javascript">
						var f_board_audit = "<c:out value='${board.audit}' />";
						var boardAuditValue = parseInt(f_board_audit);
						if(boardAuditValue == 1){
							$("#f_board_audit").attr("checked",true);
					  	}
					</script>
				</td>
			</tr>
			<tr>
			<th width="75px">是否可用</th>
				<td>
					<input type="checkbox" id="f_board_enabled" name="board.enabled" value="1"/>
					<script type="text/javascript">
						var boardEnabled = "<c:out value='${board.enabled}' />";
						var boardEnabledValue = parseInt(boardEnabled);
						if(boardEnabledValue == 1){
							$("#f_board_enabled").attr("checked",true);
					  	}
					</script>
				</td>
			</tr>
			<tr>
			<th width="75px">父版区</th>
				<td>
					<select name="board.parentId">
						<ms:board type="selectparentboard" property="${board.boardId}"></ms:board>
					</select>
				</td>
			</tr>
			<tr>
			<th width="45px">序</th>
				<td><input type="text" name="board.orders" value="${board.orders }"/></td>
			</tr>
			<tr>
			<th width="45px">描述</th>
				<td><input type="text" name="board.description" value="${board.description}"/></td>
			</tr>
			<tr>
				<td><input type="submit" name="保存" value="保存"/></td>
			</tr>
		</table>
	</form>
</div>
